package com.edu.atams.common.sheet;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class TeacherUpload extends BaseRowModel implements Serializable {
    @ExcelProperty(value ={"姓名"}, index=0)
    private String name;

    @ExcelProperty(value ={"性别"}, index=1)
    private String sex;

    @ExcelProperty(value ={"生日"}, index=2)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ExcelProperty(value ={"手机号码"}, index=3)
    private String tel;

    @ExcelProperty(value ={"电子邮箱"}, index=4)
    private String email;

    @ExcelProperty(value ={"地址"}, index=5)
    private String address;

    @ExcelProperty(value ={"身份证"}, index=6)
    private String icCard;
}
